import request from '@/utils/request'

export function getPersons(data) {
  return request({
    url:'/persons/list',
    method:'post',
    data,
  })
}

export function getPersonsDetail(data) {
  return request({
    url:'/persons/details',
    method:'post',
    data,
  })
}

export function delPerson(data) {
  return request({
    url:'/persons/delete',
    method:'post',
    data,
  })
}

export function saveOrUpdatePerson(data) {
  return request({
    url:'/persons/saveOrUpdate',
    method:'post',
    data,
  })
}

export function getPersonHistory(data) {
  return request({
    url:'/persons/personHistory',
    method:'post',
    data,
  })
}

// /persons/relationship

export function getPersonRelationship(data) {
  return request({
    url:'/persons/relationship',
    method:'post',
    data,
  })
}
